More than 200 people have raised almost $7,000 in a single day for a man who police said attacked a convicted sex offender in court.